const jwt = require('express-jwt')
const config = require('../config')

const auth = jwt({
	secret: config.jwtSecretKey,
	algorithms: ['HS256'],
	credentialsRequired: true
})

module.exports = auth
